diff --git a/swh/web/templates/includes/snapshot-context.html b/swh/web/templates/includes/snapshot-context.html index 70450f3c..29f2edba 100644 --- a/swh/web/templates/includes/snapshot-context.html +++ b/swh/web/templates/includes/snapshot-context.html @@ -1,40 +1,43 @@ {% comment %} Copyright (C) 2017-2018 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information {% endcomment %}
{% if snapshot_context.origin_info %} + {% if snapshot_context.origin_info.url|slice:"0:4" == "http" %} {% endif %} - +

Origin: {{ snapshot_context.origin_info.url }}

{% else %}

Snapshot: {{ snapshot_context.snapshot_id }}

{% endif %}
diff --git a/swh/web/templates/origin-visits.html b/swh/web/templates/origin-visits.html index 2d95ba39..2621dcd4 100644 --- a/swh/web/templates/origin-visits.html +++ b/swh/web/templates/origin-visits.html @@ -1,101 +1,104 @@ {% extends "browse.html" %} {% comment %} Copyright (C) 2017-2018 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information {% endcomment %} {% load static %} {% load swh_templatetags %} {% load render_bundle from webpack_loader %} {% block header %} {{ block.super }} {% render_bundle 'origin' %} {% endblock %} {% block swh-browse-before-panels %}
+ {% if origin_info.url|slice:"0:4" == "http" %} {% endif %}

Origin: {{ origin_info.url }}

{% for key, val in swh_object_metadata.items|dictsort:"0.lower" %} {% endfor %}
{% endblock %} {% block swh-browse-main-panel-content %}

{{ top_panel_text }}

Visits overview

Visits history

Timeline
Calendar
List
{% endblock %}